|
|
"Daniel" <new### [at] hotmailcom> wrote in message
news:42066ccb$1@news.povray.org...
>I would like to create those little wooden alphabet blocks that we all used
>when we were a child. I am figuring somethings out. But if someone would
>be kind enough, I would like to see a sample on. I would be grateful. The
>face with the letter should be imported from an image file and made 3d
>looking. Thanks. Email me at new### [at] hotmailcom
>
>
Something like this?
#declare kidcube = object {
Round_Box (<-1, -1, -1> // one corner position <X1 Y1 Z1>
< 1, 1, 1> // other corner position <X2 Y2 Z2>
.1
0)
texture{
T_Wood10
normal { wood .5 scale 0.2 turbulence 0.01}
finish { ambient 0.1 diffuse 0.9 phong 1 }
rotate<60,0,45> scale 0.125
}
}
#macro toy_cube (cubecolour, lettercolour, letter)
difference {
object {kidcube pigment { color cubecolour } }
object {
text {
ttf "Arlrdbd.ttf" letter .15, 0
scale 2
translate <-.6,-.65,-1.2>
texture{
T_Wood10
pigment { color lettercolour }
normal { wood 0.5 scale 0.2 turbulence 0.01}
finish { ambient 0.1 diffuse 0.9 phong 1 }
rotate<60,0,45> scale 0.125
}
}
}
}
#end
object { toy_cube (Red, Blue, "A") rotate -40*y translate <0, 1, 1 > scale
1}
cheers,
Ian G.
Post a reply to this message
|
|